<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改物管费')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-SysFloor-edit" th:object="${properFee}">
            <input name="properId" th:field="*{properId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">序号：</label>
                <div class="col-sm-8">
                    <input name="num" th:field="*{num}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">楼层名：</label>
                <div class="col-sm-8">
                    <input name="floorName" th:field="*{floorName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">租户名：</label>
                <div class="col-sm-8">
                    <input name="companyName" th:field="*{companyName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">租户id：</label>
                <div class="col-sm-8">
                    <input name="companyId" th:field="*{companyId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">建筑面积：</label>
                <div class="col-sm-8">
                    <input name="coveredArea" th:field="*{coveredArea}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物管费：</label>
                <div class="col-sm-8">
                    <input name="propertyFee" th:field="*{propertyFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">空关面积：</label>
                <div class="col-sm-8">
                    <input name="emptyArea" th:field="*{emptyArea}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物管费_空关：</label>
                <div class="col-sm-8">
                    <input name="propertyEmptyFee" th:field="*{propertyEmptyFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">面积小计：</label>
                <div class="col-sm-8">
                    <input name="areaSum" th:field="*{areaSum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">物管费小计：</label>
                <div class="col-sm-8">
                    <input name="propertySum" th:field="*{propertySum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">说明：</label>
                <div class="col-sm-8">
                    <input name="shuoming" th:field="*{shuoming}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">参数类别：</label>
                <div class="col-sm-8">
                    <input name="paramKind" th:field="*{paramKind}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">生成时间：</label>
                <div class="col-sm-8">
                    <input name="updatetime" th:field="*{updatetime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">年月标识：</label>
                <div class="col-sm-8">
                    <input name="etldt" th:field="*{etldt}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">

        $("#form-SysFloor-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                edit();
            }
        }
        function edit(){
            var num = $("#num").val();
            var properId = $("#properId").val();
            var floorName = $("#floorName").val();
            var companyName=$("#companyName").val();
            var companyId=$("#companyId").val();
            var coveredArea=$("#coveredArea").val();
            var propertyFee=$("#propertyFee").val();
            var emptyArea=$("#emptyArea").val();
            var propertyEmptyFee=$("#propertyEmptyFee").val();
            var areaSum=$("#areaSum").val();
            var propertySum=$("#propertySum").val();
            var shuoming=$("#shuoming").val();
            var paramKind=$("#paramKind").val();
            var updatetime=$("#updatetime").val();
            var etldt=$("#etldt").val();
            var remark = $("#remark").val();

            $.ajax({
                cache : true,
                type : "POST",
                url : ctx + "sujian/propertyManagementFee/edit",
                data : {
                    "num":num,
                    "properId":properId,
                    "floorName":floorName,
                    "companyName": companyName,
                    "companyId": companyId,
                    "coveredArea": coveredArea,
                    "propertyFee": propertyFee,
                    "emptyArea": emptyArea,
                    "propertyEmptyFee": propertyEmptyFee,
                    "areaSum": areaSum,
                    "propertySum": propertySum,
                    "shuoming": shuoming,
                    "paramKind": paramKind,
                    "updatetime": updatetime,
                    "etldt": etldt,
                    "remark": remark
                },
                async : false,
                error : function(request) {
                    $.modal.alertError("系统错误.");
                },
                success : function(data) {
                    $.operate.successCallback(data);
                }
            });
        }

    </script>
</body>
</html>